]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
trivial: Fix the signedness of boolean fields
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 4 Nov 2013 21:04:20 +0000 (16:04 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 5 Nov 2013 14:11:49 +0000 (09:11 -0500)
The standard old kludge with gboolean being signed, not unsigned.
Encountered while printing the values for debugging.

https://bugzilla.gnome.org/show_bug.cgi?id=644306

src/shell-app.c
src/st/st-adjustment.c
src/st/st-scroll-view.c
src/st/st-widget.c

index ede6bc05f868f9886030c6348919bcee1f3f04e5..9e94e5340d4283a3e3be9fe262299e7a543eeaae 100644 (file)
@@ -37,7 +37,7 @@ typedef struct {
   GSList *windows;
 
   /* Whether or not we need to resort the windows; this is done on demand */
-  gboolean window_sort_stale : 1;
+  guint window_sort_stale : 1;
 
   /* DBus property notification subscription */
   guint properties_changed_id : 1;
index d7f0bfa3feaf4e564de217f9ebd8675a39299b53..08690a918cb21f5ba516ed813ef37c36ecf130ff 100644 (file)
@@ -45,7 +45,7 @@ struct _StAdjustmentPrivate
 {
   /* Do not sanity-check values while constructing,
    * not all properties may be set yet. */
-  gboolean is_constructing : 1;
+  guint is_constructing : 1;
 
   gdouble  lower;
   gdouble  upper;
index eb35928f2455a77b7ff9f4fcbec492900b861a39..7b76b07abd4d524cbc3af2f9485931dce3c5a601 100644 (file)
@@ -98,8 +98,8 @@ struct _StScrollViewPrivate
 
   StScrollViewFade *fade_effect;
 
-  gboolean      row_size_set : 1;
-  gboolean      column_size_set : 1;
+  guint         row_size_set : 1;
+  guint         column_size_set : 1;
   guint         mouse_scroll : 1;
   guint         overlay_scrollbars : 1;
   guint         hscrollbar_visible : 1;
index f1b6ec7fd5db9bda47ecf9ea809fc37452bc86b8..d63af1eae31de5cc8d4f3c56cbc1e40fce008177 100644 (file)
@@ -59,12 +59,12 @@ struct _StWidgetPrivate
 
   StThemeNodeTransition *transition_animation;
 
-  gboolean      is_style_dirty : 1;
-  gboolean      draw_bg_color : 1;
-  gboolean      draw_border_internal : 1;
-  gboolean      track_hover : 1;
-  gboolean      hover : 1;
-  gboolean      can_focus : 1;
+  guint is_style_dirty : 1;
+  guint draw_bg_color : 1;
+  guint draw_border_internal : 1;
+  guint track_hover : 1;
+  guint hover : 1;
+  guint can_focus : 1;
 
   gulong texture_file_changed_id;